package com.yisu.auction.ewf.common.enums;

/**
 * Created by LKL on 2016/3/8.
 */
public enum ResponseCode {
    SUCCESS(0, "成功"),
    FAILURE(-1, "系统错误"),

    //请求错误
    PARAMETER_ERROR(4000, "参数错误"),
    NO_LOGIN(4001, "未登录"),
    TOKEN_NOT_EXIST(4002, "token不存在"),
    CUSTOMER_NOT_EXIST(4003, "用户不存在"),
    NO_REQUEST_HANDLER(4004, "请求URL不存在"),
    VALIDATE_CODE_ERROR(4005, "验证码错误或已过期"),
    ACCOUNT_WAS_FROZEN(4006, "账号已冻结"),
    PASSWORD_INCONSISTENT(4007,"两次密码不一致"),
    HEADER_ERROR(4008, "请求头错误"),

    SERVICE_AREA_NOT_EXIST(5000, "服务区不存在"),
    GAS_STATION_NOT_EXIST(5001, "加油站不存在"),
    BREAK_RULE_OVER_LIMIT(5002, "每天最多查询%s次，您已超限"),

    RECHARGE_AREA_IS_NOT_SUPPORT_AREA(6001,"当前地区不支持充值"),
    NOT_MOBILE_NUMBER(6002,"不是正确的手机号码");


    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer code;
    public String msg;

}
